Optimal. Leaf size=139 \[ -\frac{8 \sin ^7(c+d x)}{99 a^3 d}+\frac{56 \sin ^5(c+d x)}{165 a^3 d}-\frac{56 \sin ^3(c+d x)}{99 a^3 d}+\frac{56 \sin (c+d x)}{99 a^3 d}+\frac{16 i \cos ^7(c+d x)}{99 d \left (a^3+i a^3 \tan (c+d x)\right )}+\frac{i \cos ^5(c+d x)}{11 d (a+i a \tan (c+d x))^3} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.116676, antiderivative size = 139, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 24, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.125, Rules used = {3502, 3500, 2633} \[ -\frac{8 \sin ^7(c+d x)}{99 a^3 d}+\frac{56 \sin ^5(c+d x)}{165 a^3 d}-\frac{56 \sin ^3(c+d x)}{99 a^3 d}+\frac{56 \sin (c+d x)}{99 a^3 d}+\frac{16 i \cos ^7(c+d x)}{99 d \left (a^3+i a^3 \tan (c+d x)\right )}+\frac{i \cos ^5(c+d x)}{11 d (a+i a \tan (c+d x))^3} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3502
Rule 3500
Rule 2633
Rubi steps
\begin{align*} \int \frac{\cos ^5(c+d x)}{(a+i a \tan (c+d x))^3} \, dx &=\frac{i \cos ^5(c+d x)}{11 d (a+i a \tan (c+d x))^3}+\frac{8 \int \frac{\cos ^5(c+d x)}{(a+i a \tan (c+d x))^2} \, dx}{11 a}\\ &=\frac{i \cos ^5(c+d x)}{11 d (a+i a \tan (c+d x))^3}+\frac{16 i \cos ^7(c+d x)}{99 d \left (a^3+i a^3 \tan (c+d x)\right )}+\frac{56 \int \cos ^7(c+d x) \, dx}{99 a^3}\\ &=\frac{i \cos ^5(c+d x)}{11 d (a+i a \tan (c+d x))^3}+\frac{16 i \cos ^7(c+d x)}{99 d \left (a^3+i a^3 \tan (c+d x)\right )}-\frac{56 \operatorname{Subst}\left (\int \left (1-3 x^2+3 x^4-x^6\right ) \, dx,x,-\sin (c+d x)\right )}{99 a^3 d}\\ &=\frac{56 \sin (c+d x)}{99 a^3 d}-\frac{56 \sin ^3(c+d x)}{99 a^3 d}+\frac{56 \sin ^5(c+d x)}{165 a^3 d}-\frac{8 \sin ^7(c+d x)}{99 a^3 d}+\frac{i \cos ^5(c+d x)}{11 d (a+i a \tan (c+d x))^3}+\frac{16 i \cos ^7(c+d x)}{99 d \left (a^3+i a^3 \tan (c+d x)\right )}\\ \end{align*}
Mathematica [A] time = 0.547016, size = 120, normalized size = 0.86 \[ \frac{\sec ^3(c+d x) (-11088 i \sin (2 (c+d x))+7920 i \sin (4 (c+d x))+880 i \sin (6 (c+d x))+72 i \sin (8 (c+d x))-16632 \cos (2 (c+d x))+5940 \cos (4 (c+d x))+440 \cos (6 (c+d x))+27 \cos (8 (c+d x))-5775)}{63360 a^3 d (\tan (c+d x)-i)^3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.103, size = 273, normalized size = 2. \begin{align*} 2\,{\frac{1}{d{a}^{3}} \left ({\frac{{\frac{303\,i}{128}}}{ \left ( \tan \left ( 1/2\,dx+c/2 \right ) -i \right ) ^{2}}}-{\frac{{\frac{5\,i}{64}}}{ \left ( \tan \left ( 1/2\,dx+c/2 \right ) +i \right ) ^{2}}}+{\frac{2\,i}{ \left ( \tan \left ( 1/2\,dx+c/2 \right ) -i \right ) ^{10}}}-{\frac{23/2\,i}{ \left ( \tan \left ( 1/2\,dx+c/2 \right ) -i \right ) ^{8}}}+{\frac{i/32}{ \left ( \tan \left ( 1/2\,dx+c/2 \right ) +i \right ) ^{4}}}-4/11\, \left ( \tan \left ( 1/2\,dx+c/2 \right ) -i \right ) ^{-11}+{\frac{53}{9\, \left ( \tan \left ( 1/2\,dx+c/2 \right ) -i \right ) ^{9}}}-{\frac{33}{2\, \left ( \tan \left ( 1/2\,dx+c/2 \right ) -i \right ) ^{7}}}+{\frac{623}{40\, \left ( \tan \left ( 1/2\,dx+c/2 \right ) -i \right ) ^{5}}}-{\frac{365}{64\, \left ( \tan \left ( 1/2\,dx+c/2 \right ) -i \right ) ^{3}}}+{\frac{219}{256\,\tan \left ( 1/2\,dx+c/2 \right ) -256\,i}}+{\frac{{\frac{217\,i}{12}}}{ \left ( \tan \left ( 1/2\,dx+c/2 \right ) -i \right ) ^{6}}}-{\frac{{\frac{169\,i}{16}}}{ \left ( \tan \left ( 1/2\,dx+c/2 \right ) -i \right ) ^{4}}}+{\frac{1}{80\, \left ( \tan \left ( 1/2\,dx+c/2 \right ) +i \right ) ^{5}}}-{\frac{7}{96\, \left ( \tan \left ( 1/2\,dx+c/2 \right ) +i \right ) ^{3}}}+{\frac{37}{256\,\tan \left ( 1/2\,dx+c/2 \right ) +256\,i}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: RuntimeError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.40705, size = 390, normalized size = 2.81 \begin{align*} \frac{{\left (-99 i \, e^{\left (16 i \, d x + 16 i \, c\right )} - 1320 i \, e^{\left (14 i \, d x + 14 i \, c\right )} - 13860 i \, e^{\left (12 i \, d x + 12 i \, c\right )} + 27720 i \, e^{\left (10 i \, d x + 10 i \, c\right )} + 11550 i \, e^{\left (8 i \, d x + 8 i \, c\right )} + 5544 i \, e^{\left (6 i \, d x + 6 i \, c\right )} + 1980 i \, e^{\left (4 i \, d x + 4 i \, c\right )} + 440 i \, e^{\left (2 i \, d x + 2 i \, c\right )} + 45 i\right )} e^{\left (-11 i \, d x - 11 i \, c\right )}}{126720 \, a^{3} d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 2.18172, size = 335, normalized size = 2.41 \begin{align*} \begin{cases} \frac{\left (- 626985510622986240 i a^{24} d^{8} e^{41 i c} e^{5 i d x} - 8359806808306483200 i a^{24} d^{8} e^{39 i c} e^{3 i d x} - 87777971487218073600 i a^{24} d^{8} e^{37 i c} e^{i d x} + 175555942974436147200 i a^{24} d^{8} e^{35 i c} e^{- i d x} + 73148309572681728000 i a^{24} d^{8} e^{33 i c} e^{- 3 i d x} + 35111188594887229440 i a^{24} d^{8} e^{31 i c} e^{- 5 i d x} + 12539710212459724800 i a^{24} d^{8} e^{29 i c} e^{- 7 i d x} + 2786602269435494400 i a^{24} d^{8} e^{27 i c} e^{- 9 i d x} + 284993413919539200 i a^{24} d^{8} e^{25 i c} e^{- 11 i d x}\right ) e^{- 36 i c}}{802541453597422387200 a^{27} d^{9}} & \text{for}\: 802541453597422387200 a^{27} d^{9} e^{36 i c} \neq 0 \\\frac{x \left (e^{16 i c} + 8 e^{14 i c} + 28 e^{12 i c} + 56 e^{10 i c} + 70 e^{8 i c} + 56 e^{6 i c} + 28 e^{4 i c} + 8 e^{2 i c} + 1\right ) e^{- 11 i c}}{256 a^{3}} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.18331, size = 301, normalized size = 2.17 \begin{align*} \frac{\frac{33 \,{\left (555 \, \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{4} + 1920 i \, \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{3} - 2710 \, \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} - 1760 i \, \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) + 463\right )}}{a^{3}{\left (\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) + i\right )}^{5}} + \frac{108405 \, \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{10} - 784080 i \, \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{9} - 2901195 \, \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{8} + 6652800 i \, \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{7} + 10407474 \, \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{6} - 11435424 i \, \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{5} - 8949270 \, \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{4} + 4899840 i \, \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{3} + 1816265 \, \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} - 411664 i \, \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) - 47279}{a^{3}{\left (\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) - i\right )}^{11}}}{63360 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]